﻿<?php
class about extends top
{
	function index(){
		$data = $this->spArgs();

	}
	function details(){
		
		$data = $this->spArgs();
		$article = spClass("m_article");
		$article_result = $article->find(array("id"=>$data["id"]));
		$article->update(array("id"=>$article_result['id']),array("view_num"=>$article_result['view_num']*1+1));
		$this->cat_result = spClass("m_category")->find(array("id"=>$article_result["cat_id"]));
		$this->article_result = $article_result;
		

	}
}